package com.lwj.hiring.common.util;

import org.apache.log4j.Logger;

/**
 * 常用的工具类
 * 
 * @author Administrator
 *
 */
public class Util {

	private Util() throws IllegalAccessException {
		throw new IllegalAccessException();
	}

	/**
	 * Log4j常用的三种日志输出
	 */
	public static void e(Logger logger, String message, Exception e) {
		logger.error(message, e);
	}

	public static void i(Logger logger, String message) {
		if (logger.isInfoEnabled()) {
			logger.info(message);
		}
	}

	public static void d(Logger logger, String message) {
		if (logger.isDebugEnabled()) {
			logger.debug(message);
		}
	}
}
